<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _synced(method, self, args, kwargs):
 """Underlying synchronized wrapper."""

    with self._lock:
        return method(*args, **kwargs)