This patch makes use of the recently added support for const RPC functions by turning 'Framebuffer::Session::mode()' and 'Input::Session::is_pending()' into const functions.