git_bare: Use directory_get_entries instead of directory_ls, it should be faster
As it does not need to join with the content table.
On small repositories with a warm cache, it doesn't seem to matter much, though.
But it's also closer to a feature swh-graph will provide in the future,
so it's a win anyway.