Use lockfile module instead of own code.