Properly terminate results of `env_keys`
Test with MallocScribble=1