Fix segfault due to c_args variable in compactor

- c_args should be alive while compactor thread is running.