nn_atomic class added

It represents 32-bit unsigned integer with associated atomic
operations.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>