service: refactor code for checking if a service is managed by systemd

Check the LoadState property of the unit returned by
`systemctl -p LoadUnit show x.service`.