red-brick: Use dedicated enum for the directory object entry type

Not all file types can be directory entries.
red-brick: Adapt to changes in the process object's state handling