Resolve "Make proper use of the atomics"
- Not all atomics were properly accessed (with atomic_ functions)
- We still had a few places where we used locked variables instead of isc_refcount_t for reference counting
- Added optional mode in which atomics are emulated with mutex-locked variables (for debugging/profiling) Closes #1038 (closed)
Edited by Witold Krecicki