[PATCH v2] ceph: ensure we take snap_empty_lock atomically with snaprealm refcount change