An asylum seeker who allegedly professed to be the Prophet Muhammad and threatened to get a knife to kill someone in Belfast has been jailed for three months.