lib: Perform the same transformation to _notmuch_database_find_directory_id