Embedded lock in to server struct