Fix warning.
Fix warning related to order of initialization.
Fix LockedDof.

  - make the distinction between rank in configuration and rank in velocity.
  - rank in configuration is used to set the value of the locked dof,
  - rank in velocity is used to remove Jacobian columns in config projection.