fix term_init
mch_early_init() -> early_init().

Move general initialization functions to early_init, which simplifies
test/unit/helpers.lua, which requires all these functions.