Moved overlayfs xattr and readlink code into functions for testing
whether they are equal, and moved them into sync_union.cc, leaving
only an underlying platform-specific lgetxattr in platform_linux.h

Also added a stub function in platform_osx.h