Attempt to avoid hangs in freeRTOS calls for file operations, by
introducing a 1 second timeout.