Update pidlock.rb

if you specify @name = "test/ruby.pid" it tries to write to /tmp/test/ruby.pid where the folder test does not exist.