anchor.diff:    _disposeOfSocket(Socket socket) {
       socket.close();
       requestors.forEach((lock, reqList) {
  -      while (reqList.removeWhere((e) => e["socket"] == socket));
  +      reqList.removeWhere((e) => e["socket"] == socket);
       });
       _removeSocketLocks(socket);
       clientSockets.remove(socket);
  
positive.code:   _releaseLock(String requestId, String lockType, Socket socket) {
      if (currentLock[lockType]["socket"] == socket) {
        currentLock.remove(lockType);
        writeJSON(socket, {"result":"ok", "action":"release", "requestId":requestId});
        checkLockRequestors();
      } else {
  
negative.code:   // Adds the socket with additional data to queue for given lockType
    _addRequestor(String requestId, String lockType, Socket socket) {
      if (requestors[lockType] == null) requestors[lockType] = [];
      print('Adding requestor $requestId for $lockType.');
      requestors[lockType].add({"socket" : socket, "requestId": requestId});
      checkLockRequestors();
    }
  