Internal: fixed filters execution order and fix potential concurrency issue in filter chains

Fix filters ordering which seems to be the opposite to what it should be (#7019). Added missing tests for rest filters.

Solved concurrency issue in both rest filter chain and transport action filter chain (#7021).

Closes #7019
Closes #7021
sure, will change that!