Add synchronized_domain decorator

As a temporary fix for bug 1392762, we serialize concurrent
modifications to a domain, preventing the issue described in
the bug. We choose a temporary fix, as pools will make a no
locking fix significantly easier.

Closes-Bug: 1392762
Change-Id: Ifb1bba170983023aedbc63ed3559fe8b28359efa