[CONPRO-1558] Adding check for tasks already freed through ca_thread_pool_free