C: fix panic free from wrong pool 5.1[02] threaded with DEBUG_LEAKING_SCALARS

do not store static strings for debugging with 5.10 and 5.12 threaded