monitor: Monitor uses almost all others, so it should be stopped at first.
monitor: use one lock_guard for both: checking backend state and dumping backend json.