In D158802 we honored user's `thread_limit` value even with the optimization introduced in D152014. This patch adds a simple test.