samba: use the new API
And fix potential data races, that could have become criticial with the new medialibary (more than one samba access in //). Indeed, the SMBCCTX and SMBCFILE were stored statically and fetch from an unique fd without any lock mechanism.