Add thread-local storage for AmigaOS