add test for DirectoryLockManager

DirectoryLockManager is failing in NativeStoreDirLockTest and this is a
verification that the basic method isn't failing, without referencing
the NativeStore code