Ensure run loop queues are only added once.

Fixes #4578.