Add two atomic functions and WSharedPtr to WCore.

Signed-off-by: Wiki Wang <wikiwang@live.com>