Time-dependent closure of a borehole in a viscoplastic rock