Golf detached_sessions some more

* Rename session_number to detached_session_number and do the
  detachedness test there.
* Use that in detached_sessions for briefness (: