mon: make max_global_id increase a bit more robust

- Increase it in one go, not with lots of additions
- Deal with weird edge cases where max_global_id is not a sane value

Signed-off-by: Sage Weil <sage@inktank.com>