fix getting stat() with user metadata

During the refactoring of the get_user_metadata
functions, the calls to them were not updated in stat()