Man gets three years in prison for obstructing jailer