closed #4542: not use lock_guard