Bug 904483 - Fix out of order destruction problem when destroying GrContext r=mattwoodrow