[aws] fix race condition in v4 signature tests

closes #2698