UE: fix mutex locking verification
fix a error that was created by over complexity in setting a pointer to null for a wrong later assert verification
fix a error that was created by over complexity in setting a pointer to null for a wrong later assert verification