posix: Set pthread attribute values in detach and setschedparm methods.