[LSTAT]: Compile/use slash_aware_lstat only if it is necessary.