major bugfix to dynamic and branching Workflows: LOCK wfs upon update (+unit test)