portability: protect O_NOATIME

The O_NOATIME open() flag is only available on Linux, so unbreak building
by protecting it with an ifdef.