Added mutex for thread safety on best socket ever