entry-directories: Fix unref