smbd: remove just created sharemode entry in the error codepaths