Fixes the issue where gtorrent.lock is checked for even if the directory doesn't exist.

This is the simplest way I could think of to do this.