when the 737 gear lever is in off, you are correct in saying that retract lines are depressurised. the legs just hang on the uplocks. in an emergency the legs are manually dropped mechanically via 3 individual cables which are pulled from a panel in the flight deck floor, operating the respective uplocks and letting gravity do the rest.