shouldn't check for ```null```? or is it ensured that the ```lockFactory``` is never ```null```?