Return self.lock on __enter__ to make the refresh method accessible.