Remotery: Linux fixes
* AtomicCompareAndSwap was failing due to accepting long (8 bytes) as a parameter when passing rmtU32 (4 bytes).
* Fixed bad checking for pthread handle validity.