Use atomic operations on the global API reference counter

Now using a2_AtomicAdd() for the a2_api_users global API reference
counter, to ensure that we don't risk segfaults or memory leaks in
applications that register drivers or create multiple states from
concurrent threads.

Closes #172.
WIP: 'fm2' oscillator unit