librbd: reduce cache flush overhead