I ran into this problem myself. I found that the only way to avoid the lock placed in such a file is to add an option nobrlto your mount. Your entry /etc/fstabmight look something like this:
//<SERVERNAME>/<REMOTEPATH> /<LOCALMOUNTPOINT>/<LOCALPATH> cifs credentials=/home/<LOCALUSERNAME>/.smbcredentials,iocharset=utf8,uid=1000,gid=1000,file_mode=0775,dir_mode=0775,nobrl 0 0
This happens on the following wubuntu wiki page: https://wiki.ubuntu.com/MountWindowsSharesPermanently