The social network Nextdoor.com is testing ways to prevent postings that have led blacks and Latinos to be seen as suspects in their own neighborhoods.