“Open houses should not be held to market properties for rent or sale,” Boston Mayor Martin J. Walsh said in a letter.