bdi: add helper function for doing init and register of a bdi for a file system