In what seemed a calculated political gamble , President Carlos Mesa of Bolivia offered Congress his resignation on Monday in the face of road-choking protests that he said had made the country nearly ungovernable . ''