Work around Linux's lack of O_PLAIN. This is not perfect - side effects of open() will still happen - but it's about as good as we can get without O_PLAIN.