[MERGE] fix session destroy and ctf trace put ref

Signed-off-by: David Goulet <dgoulet@efficios.com>