escape: fix return code
core: remove systemd_running_as lookup functions

They are unused and unlikely to ever be.