use some random O_ flags when opening test files.
sometimes create testfiles with open, sometimes with fopen.

Turns out the btrfs oops I'm currently seeing only happens with file streams