Internal pressure-compensating valves