Put lock flag on filesystem class.