Fix thread-MPI rank choice for orientation restraints