Automate cleanup of global resources opened by Palaso assembly

At the moment, this applies only to Linux/Mono for one particular
resource, but could be extended as needed.

See https://jira.sil.org/browse/WS-11 (and probably https://jira.sil.org/browse/FWNX-1363) for why this is needed.