Update dir_test.go

Fixing lock.Close() check in TestNewLock.