nbd: Move nbd_read() to common header