Use ptruint instead of longint cast for self address for WRITE_DEBUG

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@29054 3ad0048d-3df7-0310-abae-a5850022a9f2
 Also use PHTREAD_INHERIT_SCHED in pthread_attr_setinheritedsched for NetBSD system

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@29055 3ad0048d-3df7-0310-abae-a5850022a9f2
 Also define PHTREAD_INHERIT_SCHED

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@29056 3ad0048d-3df7-0310-abae-a5850022a9f2
 Also define __CPU_SIMPLE_LOCK_PAD for x86_64 netbsd

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@29057 3ad0048d-3df7-0310-abae-a5850022a9f2
 Multifield pthread_attr_t for NetBSD

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@29058 3ad0048d-3df7-0310-abae-a5850022a9f2