Prepare usedGids mechanics

- add methods for loading entityless attribute value from DB with "for
  update"
- add new module for attribute entityless_def_usedGids
- rework group_def_unixGID_namespace and resource_def_unixGID_namespace
  to use usedGids attribute
- add simple tests