<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pop(self, key, default):
 """If the key is set, remove and return the list stored at key. Otherwise return default."""

        with self._lock:
            return self._dict.pop(key, default)