Added a rough GIANT spin lock to avoid racing.

Added an experimental giant spin lock
To enable it: set ini entry: yac.use_lock = 1

As a cost of the performance collapsed, you will never get wrong data which you set before.
Note:Data still maybe lost.

Maybe useful for certain occasion.