[PATCH v3 1/1] loader: Make thread_ldt references position independent