Toward the primordial black hole formation threshold in a time-dependent equation-of-state background