- Added missing calls to lock() in ResourcesSelection class.