main/busybox: backport proper pattern_list support for busybox

Even though this patch was written by myself it was already included
upstream. I find this issues to be particularly annoying as my mail
client (community/mblaze) uses this feature and who known how long until
busybox 1.32.0 is released.
7 jobs for !8700 with busybox-pattern_list in 4 minutes and 17 seconds (queued for 1 second)
latest detached
Status Job ID Name Coverage
  Lint
failed #131873
docker-alpine x86_64 allowed to fail
lint

00:00:23

 
  Build
passed #131878
docker-alpine ci-build aarch64
build-aarch64

00:01:34

passed #131879
docker-alpine ci-build armv7
build-armv7

00:01:37

passed #131877
docker-alpine ci-build ppc64le
build-ppc64le

00:02:14

passed #131876
docker-alpine ci-build s390x
build-s390x

00:01:33

passed #131875
docker-alpine ci-build x86
build-x86

00:01:06

passed #131874
docker-alpine ci-build x86_64
build-x86_64

00:00:58

 
Name Stage Failure
failed
lint Lint
No job log