Since “When Harry Met Sally,” romantic comedies have explored the supposedly impossible idea of men and women being “just friends.” In many ways, Leslye Headland’s “Sleeping with Other People”...