Update thread_gzip.cpp

You are unconditionally returning from the function here, you're making everything that follows dead code. The `if` without `{}` just works until the first `;`