I've chosen to go with a simple lockfile instead of sub directory.
Lockfile code mostly complete.

Creates file if it doesn't already exist, OR if it does exists and is older then the grace period.
 ( heartbeat * 1.5 );
lockfile fork & heartbeat works.