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

Fix #10836

@dnel @PVince81 @karlitschek @schiesbn