A Sydney man has fronted court, accused of threatening to kill the prime minister a day after the Bondi terror attack.