Fix race condition in chaining

Signed-off-by: Rick Copeland <rick@arborian.com>