Always write history stack when applying style with key accelerator.
This fixes the accidentially overwritten hsitory stack when calling within
darkroom. This fixes #9340.
Merge branch 'master' of github.com:darktable-org/darktable