CIFS: fix POSIX lock leak and invalid ptr deref