Pass the "flags" parameter to the lower layer syscall. This makes Apple applications being able to successfully save data.
* Fixed xattr filtering for MacOS. "system." and "user." prefixes are only relevant for Linux. * Small cleanup and additional tests.