def is_locked(self):
        """Is this server locked? While locked, all write operations
        are blocked, although read operations may still be allowed.
        Use :meth:`unlock` to unlock.
        """
        ops = self._database_default_options('admin')._current_op()
        return bool(ops.get('fsyncLock', 0))
Is this server locked? While locked, all write operations
        are blocked, although read operations may still be allowed.
        Use :meth:`unlock` to unlock.
        
stackoverflow/venv/lib/python3.6/site-packages/pymongo/mongo_client.py