Remove dependency on "evil" tmpnam
Remove all lock waiting