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
x86_64 docker-alpine allowed to fail
lint

00:00:23

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

00:01:34

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

00:01:37

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

00:02:14

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

00:01:33

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

00:01:06

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

00:00:58

 
Name Stage Failure
failed
lint Lint
No job log