rgw: fix bucket stats (RESTful api)

Fixes: #4580
formatter shouldn't be flushed to stdout.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>