Fix crash @ init: Don't call loglock unless it's an error.