Attempt to fix User circular dependency auto-loading

When User is loaded first, try to emulate the behavior as if Principal was loaded first.

No OpenProject issue, problem appeared while trying to improve test load times.

Unfortunately, I had to indent the whole User class, so Git shows a lot of changes.