TAJO-1254: Fix getProgress race conditions in Query. (jinho)

Closes #304