Make the dir before trying to create a lock file inside it