Once you get a court order (or tribunal) for possession of the property it should be ok to change the locks and to enter into new agreements. Don't know about getting the sub tenants to pay you rent directly as you have an agreement with the tenant as do they.