ceph_mon: Fix shutdown order to destroy Monitor before closing mon store
Reorder monitor shutdown to ensure all SyncProvider iterators are
destroyed before the underlying mon store is closed. This avoids
iterator cleanup paths entering RocksDB internals after the DB has
already been closed, which can result in mutex lock failures and process aborts.
Fixes: https://tracker.ceph.com/issues/75834
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit
81bd13981a1e020578335ca61bba0db05848631b)