Fixed SMB lib to overwrite on rename

Partial backport of 1b0c5e57e5e4042ebb4f0e5956330a908645b61a from
owncloud/core