machinectl: fix success check when getting pty from within container
sd-event: fix return code of sd_event_run()