Fix unlockDB to use F_SETLCK command and F_UNLCK type

Update lseeks to use lock start and whence fields