middleware update: move setting of threadlocal variable from locale to multidb middleware
middleware update: move setting of threadlocal variable from locale to multidb middleware

frePPLe/frePPLe,frePPLe/frePPLe,frePPLe/frePPLe,frePPLe/frePPLe,frePPLe/frePPLe,frePPLe/frePPLe