[PATCH v2 1/1] loader: Make thread_ldt reference position independent