Problem: zsys_run_as lockfile handling was not working

The method closed the lockfile, which meant the lock was released and
a second process could then grab it.

Solution: do not close lockfile; it has to remain open as long as the
process runs.