nbd: Flush only if it's supported

Use the flags from NBD handshake to determine if we need to flush or
not. Needed for older versions of QEMU.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>