[PATCH 6.17 141/146] libceph: replace BUG_ON with bounds check for map->max_osd