Sexual conflict and the tragedy of the commons