librados: only call watch_flush if necessary

Fix bug #10424
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
I'm afraid not, because "if (need_objecter)" scope will hold lock