Man charged over Sydney train knife threat