Re-factor PetscVector for threading