[PATCH 6.12 113/132] libceph: replace BUG_ON with bounds check for map->max_osd