SourceMgr: consistently use 'unsigned' for the memory buffer ID type