main: schedule view builder stopping earlier
main: schedule view builder stopping earlier

In order to avoid a deadlock described in the previous commit,
view builder stopping is registered earlier, so that its destructor
is called and its reader permit is released before the database starts
shutting down.
Note that draining the view builder is still scheduled later,
because it needs to happen before storage proxy drain
to keep the existing deinitialization order.

Fixes #9306

scylladb/scylla,scylladb/scylla,scylladb/scylla,scylladb/scylla