locking: update validation/ tests to the new warning format