FlatpakBwrap: Add flatpak_bwrap_add_noinherit_fd

This just keeps the fd alive until the FlatpakBwrap is freed, it
doesn't actually pass it on to the child.

We want to use this to keep a file lock held until the sandbox has
started where it takes over the lock.

Closes: #1730
Approved by: alexlarsson
This commit is contained in:
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

Gitea Version: 1.28.0+dev-477-g8b6ad49a5f