rgw: fix warning

On a 64-bit arch, we still want to make sure it's a 32-bit value, but the
cast is needed to avoid a warning on 32-bit machines.

Signed-off-by: Sage Weil <sage@inktank.com>