Various fixes (typos etc).

Fix broken atom_lck for refcount pointer.
Atomic_store should return void.
Fix immediate invocation of promise callback.