[OpenMP] Fixed the issue that target memory deallocation might be called when they're being used

This patch fixed the issue that target memory might be deallocated when
they're still being used or before they're used.

Reviewed By: ye-luo

Differential Revision: https://reviews.llvm.org/D84996

GitOrigin-RevId: f2400f024d323bc9000a4c126f2008a8b58fb4a0
1 file changed