[PATCH 6.12 111/132] libceph: fix potential use-after-free in have_mon_and_osd_map()