librados: only call watch_flush if necessary

Fix bug #10424
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Wouldn't it be better to move it down to the if (need_objecter) ?