Lockport man accused of threatening to kill the president