Lock basis directories - refs BT#9041