Fix premature GC issue manifesting as a segfault by adding enif keep/release accounting