Make commitLock work with multiproject