[PATCH openEuler-1.0-LTS 1/2] libceph: fix potential use-after-free in have_mon_and_osd_map()