libceph: fix some assertions

Fold this back into the patch(es) that created it.

Signed-off-by: Alex Elder <elder@inktank.com>