Fix readdirplus can be deadlocked #1