NioLock can fail to release the memory lock going with it in some cases #262