Revert "Revert "on linux, set thread names""

This reverts commit 94b867edb1450b27cb4ce3fce0fe9ec89b87ccdd.
limit thread names to 16 characters