Physical mechanism of enhanced stability from negative shear in tokamaks: Implications for edge transport and the L-H transition