CORE-4429: Fixed sharing and unsharing. We were using the home directory
of the connection user to halt recursion instead of the home directory
of the user making the request.