Added @doc false to terminate and code_change

Added more `@doc false` to locals_tracker and lexical_tracker, following on from 0fe940a621a8a0d823b85dee26ffaeb2a19b5490