libceph: avoid NULL kref_put when osd reset races with alloc_msg