openposix: pthread_create_2-1: Fix.

Use return value from ptread_create() instead of errno on failure.

Do not try to deatch thread that was allready joined (the call was
failing with ESRCH).

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
1 file changed