Police have swooped on a man they allege tried to set fire to a Sydney synagogue earlier this month.