Added double check lock to PetscVector:_get_array