MDL-59505 oauth2: Fix storage of access controlled links