Photographer who accused professional body of ‘jobs for the boys attitude’ loses gender discrimination claim