Add atomics for Watcom/x86 as inline asm

Partially fixes Bugzilla #3758.
3 files changed