Commercial property investors are writing clauses into contracts giving buyers the right to walk away from real estate deals if Britain votes to leave the European Union.