For one Jewish filmmaker, making a documentary about gay Palestinians helped him accept his own identity