proc: clean up /proc/<pid>/environ handling