Introduce a new lock for JIT data structures accessed by mutators.

The lock is a reader/writer lock, which will avoid long blocking times
in mutators.

Test: test.py
Bug: 315300060
Change-Id: I876560241ae255e709e2c33c3d0ff6264b763368
4 files changed