When activist investors knock at the door, companies can do themselves a favor and let them in.