Added memory fences for singleton MockEngine