Added a lot of missing calls to Lockable::lock() in derived classes.