Police have arrested a second man in connection with an attack on a Sydney synagogue earlier this month.