if(aLock) PR_AutomicIncrement(&g_LockCount); else PR_AutomicDecrement(&g_LockCount);
  NS_IMETHOD LockFactory(PRBool aLock) {    if(aLock)       PR_AutomicIncrement(&g_LockCount);    else      PR_AutomicDecrement(&g_LockCount);    return NS_OK;  };