The wife arranged a sex surprise for her husband's friend, who agreed to participate