Add protection on auto share creation if protection flag set, fixes #7