R. Nathan says: "a locked garden" — the married women; "a fountain locked, a sealed up spring" — the betrothed women. Variantly: "a locked garden, a fountain locked" — an allusion to the two types of cohabitation.
The Locked Garden and the Two Types of Women in Song of Songs
Mekhilta Tractate Pischa 5:4