Fix potential ObjectPool deadlock

A deadlock would occur if an `ObjectPool` is `Rundown()` while a separate thread is performing a `Wait()`. Now, an `autowiring_error` is thrown if this happens