Take compiler options from beam in cover:compile_beam

Similarly to cover compiling from source
(in this case some user specified compiler options are allowed)
when cover compiling from existing beam
take a filtered list of compiler options from the beamfile.
This way e.g. export_all can be preserved. See use case in eb02beb1c3
tools: Fix compile_beam_opts testcase
Remove extraneous dev debug code left in the close function.

We do not need a traceback on every close in inet_tls_dist and this
breaks using nodetool in control scripts on SSL clustered nodes
Merge branch 'ksquaredkey/fix_inet_tls_dist/OTP-11447' into maint

* ksquaredkey/fix_inet_tls_dist/OTP-11447:
  Remove extraneous dev debug code left in the close function.
Merge branch 'gomoripeti/pgo-cover-export-all/OTP-11439' into maint

* gomoripeti/pgo-cover-export-all/OTP-11439:
  tools: Fix compile_beam_opts testcase
  Take compiler options from beam in cover:compile_beam