test_rgw: fix a number of unsigned/signed comparison warnings

Probably easiest to just cherry-pick this, but by request I'm trying to avoid gitbuilder work.

Signed-off-by: Greg Farnum <greg@inktank.com>