Make malLock extern