Regulating the current of an AC lamp dimmer