Fix an assertion due to wrong argument in GlibStore

We should pass flags instead of mode to the function
flags_to_restrict_mode().
Working on new ad_plfs changes