[MERGE] fix refcount attach session

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