Autolock script adjusted to new version of systemd.
Using acpi /proc filesystem to check if lid is closed.

That makes it independent of dbus.