fontconfig: fix scanning subdirectories

Fixes #28111.