Add an option to disallow sending sharing emails to non-owncloud users

Fix #10836