yaffs Change stat to lstats in test code