Added basic smoke-tests for the rest_cherrypy /run entrypoint
Check rest_cherrypy sessions are on before accessing the session lock

Fixes #14205