fix Issue 11309 - std.concurrency: OwnerTerminated message doesn't work

- add regression test
- Revert "fix Issue 10976 - thread_joinAll after main exit performed too late"

This reverts commit 7d82a57c82f9a5359468680f36aa1026243e6f9e.

Conflicts:
	src/core/runtime.d
	src/rt/dmain2.d
fix Issue 11149 - Runtime.args no longer available in static constructor

- This got fixed by reverting the order of initialization.
- Add unittest