Use lgetxattr() instead of getxattr()