DequeIndex uses a Lock, enabling deadlock detection.
Remove unused parameters from internal method.
Handle lock failure properly in DequeIndex.