Acquire CCheckQueue's lock to avoid race condition