Fix kernel and shell tests to use transactions around read operations.