Move the O_DIRECT/fsync handling out of the Lwt module

These operations aren't Lwt-specific.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>