NOX-1053 Endpoint called with incorrect parameters (#1553) * Refactored api routing middleware to be thread-safe * Lock agent os to ubuntu-22.04 * Downgraded xunit to 2.8.1 as with 2.9.2 test execution gets stuck * Updated some tests to not depend on OS culture * Specify ms sql container image