stmhal, file: Seek to end of file if opened in 'a' mode.