Tobiko has used the oslo_concurrency.lockutils.synchronized to lock
execution of functions inter-process/worker.
The synchronized decorator does not support to disable intra-worker
locks. This is a problem for tobiko because there are some functions
that need to be locked between different workers, but not inside
a worker.
Why?
- Tobiko execution (based on pytest) is multi-worker, but not
multi-thread.
- The creation of Tobiko resources (which is what we need to lock
to avoid concurrency issues between workers) sometimes depends on the
creation of other Tobiko resources that are defined in either parent
or child classes from the first ones, getting blocked due to the
locks applied.
Change-Id: I0b1c2d707b585fd4e45cad9968c88cedf2932eed