Sync thread.d / thread.di for fibers

I think we should probably include these tests as well.

@Iain can you check if this works for X32?