Self-organized stress patterns drive state transitions in actin cortices