scanner: Use the new atomic marshal/destroy function

Use the new flagged marshal+destroy function in generated code.

It's intended as a replacement for all existing wl_proxy_marshal_*
functions, so I've used it to replace them all. This results in a large
update to the scanner test files as well.

We now pass the new WL_MARSHAL_FLAG_DESTROY flag when appropriate, so
the race condition in #86 caused by releasing the display mutex between
marshalling the proxy and destroying the proxy is now gone.

Fixes #86

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
3 jobs for marshal_flags in 43 seconds (queued for 13 seconds)
Status Job ID Name Coverage
  Review
passed #12041025
check-commit

00:00:11

 
  Prep
passed #12041026
debian:buster@container-prep

00:00:11

 
  Build
passed #12041027
build-native

00:00:20