jit-recording.c (dump::write): Also check vasprintf return value.