Fix f_glob_thread on empty directory for SafeFileAccess.

Fixes https://github.com/facebook/hhvm/issues/2389.