Made env_t::profile() be const.
Merge branch 'sam_2156' of github.com:rethinkdb/rethinkdb into sam_2156