Cache OC_Util::checkServer() result in session

The return value almost never changes but this function
is called for every request.