Added mutex solution for Go