allow retrieving a thread return value via join