Move lock from protobuf client to coordinator cluster write to see if it resolves replay issues