Workarounds an issue that may cause CUDA graph capture to fail when a cuBLAS handle is destroyed in a different thread