ecryptfs: avoid to access NULL pointer when write metadata in xattr