Interchangeable hydraulic fittings with valve lock mechanism