librbd: wire up flush counter

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