0.7: EAC-2103 Ensure Invoker functions destroyed before lock (#15)
Pre-release
Pre-release
This is an additional fix for the previous PR (EAC-2103). Ensure that `InvokerWithSingleThread` functions are destroyed before reacquiring the lock, otherwise, if an instance of `InvokerWithSingleThread` is destroyed from its own thread a deadlock will occur.