Temporary traffic lights have been installed on a busy Lancashire road as urgent gas works to repair a leak take place.