cubicweb #2393651 internal_session should behave as a context manager [validation pending]

prioritynormal
typeenhancement
done in3.15.1
load0.100
load left0.000
closed by#ff9d6d269877 [server/session,repo] turn InternalSession, hence repo.internal_session, into a context manager (closes #2393651)