fix concurrent modification of buttons in forms

This should provide fix to issue https://github.com/toscawidgets/tw2.core/issues/76