Check for IOCTL feature changed to not set inheritence

Inheritence flags should only be set on directories and not files,
setting inheritence flags on files fails and leads to not using project
ids.
Also refined the tests to make sure that project ids are indeed used.

Bug: b/215154615
Test: atest installd/StorageHostTest
Test: atest installd/installd_service_test.cpp
Change-Id: I6a2e310dc459f30fb967f25fe9162fc6ecdc54bc
Merged-In: Ia5baf127af5a078592d8b2db4b2f3d8c048a8692
2 files changed