Simplify dramatically the cross-process cgminer locking through use of flock instead of sysv semaphores.