gbde: replace malloc_last_fail with a kludge
This facilitates removal of malloc_last_fail without really impacting anything.