I am afraid that there is no work around - you change the controls tree of the viewstate after the post back.
You can only disable the viewstate on the controls on the master pages, the controls that conflict with the two master pages.
The general idea is that you disable the viewstate on the controls that have the problem, or you try to use the same control on the two master pages, with the same ids.