Is one of the cryptic clues where there are two definitions - lying has several meanings one being confinement (see thesaurus entry below)
confinement
1. custody, detention, imprisonment, incarceration, internment.
2. accouchement, childbed, childbirth, labour, lying-in, parturition, time, travail.