main/dbus: port close-all-fds patch from openjdk8

The patch to openjdk8 was introduced in f10a27ab
7 jobs for !12077 with dbus in 2 minutes and 38 seconds
latest detached
Status Job ID Name Coverage
  Lint
passed #199599
x86_64 docker-alpine
lint

00:00:23

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

00:01:56

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

00:01:55

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

00:02:13

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

00:01:03

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

00:01:12

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

00:01:12