cifs: fix locking and list handling code in cifs_open and its helper