[x86] Fix atomic operation for x86.

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>