Use the run-with-lockfile shell script instead of the C program

Then re-installers don't have to compile anything. Fixes #112