Use lexical-binding.

Important note: this is a *performance optimization only*, yielding
a very easy 10%-15% gain. The code is supposed to work with *both*
dynamic and lexical binding.