buffer pager: allow get_blksize method to return error
(cherry picked from commit 197a4f29f39e6ae6215a6dbd28ef449d305e6d49)