The issue here is whether or not your lockout violates the 11 USC sec 362 "automatic stay." The purpose of the automatic stay is best explained in the following oft-quoted passage from the legislative history of the Bankruptcy Code (HR Rep No. 95-595, 95th Cong, 1st Sess (1977), reprinted in 1978 US Code Cong & Ad News 5963, 6296):
The automatic stay is one of the fundamental debtor protections provided by the bankruptcy laws. It gives the debtor a breathing spell from his creditors. It stops all collection efforts, all harassment, and all foreclosure actions. It permits the debtor to attempt a repayment or reorganization plan, or simply to be relieved of the financial pressures that drove him into bankruptcy.
The automatic stay also provides creditor protection. Without it, certain creditors would be able to pursue their own remedies against the debtor's property. Those who acted first would obtain payment of the claims in preference to and to the detriment of other creditors. Bankruptcy is designed to provide an orderly liquidation procedure under which all creditors are treated equally. A race of diligence by creditors for the debtor's assets prevents that.
If your lock out operates as a collection effort (i.e., to encourage payment of past-due rent), or otherwise impairs the debtor in possession/trustee from obtaining the property of the bankruptcy estate (e.g., office equipment, trade fixtures, inventory, etc.), then it violates the automatic stay and you must unlock the doors.
Hope this helps.
Terms and Conditions: By your continuing in this conversation with me, or by your clicking “Accept”, you are expressly agreeing to all of the following: (1) our communication is for entertainment purposes only; (2) you are not consulting me in my professional capacity as an attorney; (3) you do not seek to establish an attorney-client relationship with me, nor do I with you; (4) you will not rely on anything I say and you will obtain appropriate legal counsel via a traditional/office consultation with an attorney licensed to practice in the jurisdiction where your legal issue arises (and you may not use our communication to avoid taxpayer penalties imposed by the U.S. Dept. of Treasury); (5) by communicating with me in this public forum you are irrevocably waiving any right to privacy, confidentiality and attorney-client privilege concerning the matters discussed. You further separately declare that any payment made by you is not consideration for this contract, nor offered for any services rendered by me on your behalf, but rather is made in genuine admiration and respect for my desire to help others. If you do not agree with these terms and conditions, then you must advise me immediately.