Primordial black hole formation for an anisotropic perfect fluid: initial conditions and estimation of the threshold