block: move a few internal definitions out of blkdev.h