add atomic operations support

embed the atomic module from @dreid [1]. will be used to handle the atomic lock in
synchronization functions.

replace the sync module originally done for flower that was working only with
cpython [2]

[1] https://github.com/dreid/atomiclong
[2] https://github.com/benoitc/flower/blob/master/flower/core/sync.c