Fix a bug on systems without O_CLOEXEC which would silently ignore
O_DIRECT configuration.