[v6r7]FIX: replaced threading.RLock with LockRing

To avoid ( hopefully ) deadlocks when spawning processes.

@KrzysztofCiba