fix a bug in the localize_vars syntax transformation. fixes #4979

this is used by async, spawn, etc. it was failing to ignore quoted
symbols, and so doing unnecessary lookups.