Pass the lock when adding waypoints
fixed serialization for player waypoints.

- Waypoint command /waypoint is now working