SPSite.IsReadLocked property
SharePoint 2013
Sets or gets, a value that specifies whether the site collection is locked and unavailable for Read access.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.Booleantrue if the site collection is locked and unavailable for Read access; otherwise, false.