Instrument the body of anonymous functions