During installation of new directory, the owner would not be set
yet. Fixup this by handling separately the expected ACL and the
ACL for the directory if it is to be created.
fixes #10980
fixes 499b6048 "db: choose a primary owner package for each directory"