Add global mutex to lock RTS.
Do not use xxx_unlocked API.