Move ctlfe_onoffline() out of lock to let it sleep when needed.

Do some more other polishing while there.

MFC after:	2 weeks