cleanup clear-locals code, correctly clear closed-overs for :once fns