replace bcache-register with c code

In a pure systemd pre-boot environment, register-bcache can't be pure
shell code, there is no interpreter available