Switch frame ref-count to libatomic_ops.
Switch frame_pool_num to libatomic_ops.
Rename MVM_cas => MVM_trycas.

The traditional cas definition is to return what was seen. We'll make
MVM_cas mean that in the future, so rename the bool-returning one to
MVM_trycas.
Make sure we get null-terminated filename.