Here’s how a sale of the Chinese-owned app could eliminate security threats, but finding the right buyer could be difficult.