I don't understand this docstring - it says it tries to get a lock, but the diff only shows it returning True.