fix race condition where the plugins were reported ready too soon