cifs: fix potential race with cifsd thread