glib: annotate some memory functions with allow-none