Persistence of local anisotropy of passive scalars in wall-bounded flows