sh: fix a number of Oopses and leaks in SH framebuffer driver