tests: work around non-thread-safeness of sysconfig.get_config_var()

16 jobs for topic/stable/sysconfiglock in 50 minutes and 45 seconds (queued for 5 seconds)