fix compute of dynamic gc threads for G1

Signed-off-by: o.pitton <olivier.pitton@gmail.com>