Remove thread lock to fix bug.