Primordial black hole constraints in cosmologies with early matter domination