block: make register_disk() static