A precise measurement of the average b hadron lifetime