[block, lock_checker] add an is_locked() method for use in unit tests.
[block_t] verify any exception thrown by validator->check() gets passed up, and the lock is not consequently taken.