locale-check: skip checking terminal, parent environment if inaccessible
locale-check: try to guess parent process if adopted by init