better logging of lock with pid
added forktest