A good tenant should get its security deposit back at the end of the lease. But it might not be that simple if the landlord files for bankruptcy.