A Boston suburb’s housing authority is planning to buy the campus of Eastern Nazarene College, which closed last year, for $21 million.