trace2: add a public function for getting the SID