Protected spaceLock generation from race