"takelock" undefined.

Fix previous incomplete commit