The population genetics of cooperative gene regulation