Merge pull request #189 from amikryukov/gdmaster

hotfix
hotfix
Kernel without threads could get samples that he will never make