Only use locks on the pending queue for the threaded RTS, to avoid a deadlock in reentrant but not concurrent systems.