libgomp: Fix locking in OpenMP GOMP_target* functions.