prepare localstorage to support user metadata

In stat() take metadata from the function stub
get_user_metadata() instead of leaving it empty