Fix getCurrentThreadName() on OSX