GdaWorkerThread: Remove trailing comma.

This causes a g++ warning when using -pedantic.
Fix some unused variables warnings.