[sd2_mr0569] add direct semaphore lock to ahn_quiraj instance (need check Win compile). related to #138