Sync threadgroup module from the oslo stable branch

This is to allow change Idf5b7c1100fc85743ac6dc5831731f7ecc96bfd6 to be
applied to the stable branch.

Change-Id: I839129874de6697594fbe5f3bfb937180041bdbc
Merge "Sync threadgroup module from the oslo stable branch" into stable/icehouse