Adjusted lock button (switch) code to work properly with the Sunfish Switch class.