The entire transaction is vitiated by fraud
When the landlord himself mentioned in the contract that he is letting his property for residential business, it necessarily implies that such letting would be permissible only if the nature of user of the premises is commercial
No restuarant can operate from a residential premises
The landlord ought to have disclosed that his premises has a residential user and there are pending BMC cases on his property
He suppressed vital and material facts from you which is entirely fraudulent
Thus landlord refusing to refund your deposit is illegal
Also you are entitled to the refund of full deposit on simultaneous handover of vacant possession to the landlord. The landlord cannot impose unilateral condition that 50% will be paid on possession and balance 50% when he finds a new tenant
The landlord cannot take undue advantage of his wrong
You will have to file a police complaint against the landlord and also file a civil suit for recovery of your deposit with compensation and damages
You had to vacate the premises as it became impossible for you to run your business since the user itself was residential
This is plain fraud
So the lock in period stipulation does not apply at all against you