AMIGAOS4: Fix getParent() for non-directories

The previous attempt in d32816c0 was broken because it failed
to realize that _pFileLock is only set for directories.

This patch also tries to clarify this by making the root node logic
explicit in isRootNode().