Export the temp buffer functionality in the debug functions interface to allow sharing more code between libwine and ntdll.