make coverity build script use updated environment variables
Enable the async write process to be disabled for testing purposes
fix resource leak on error (Coverity 1256245)
release gadget allocation on error path (Coverity 1109875)
ensure the backing store write reports at least a minimal amount of time