shared: Add missing header to backend.h

The backend was using a struct defined in bt-daemon.h but wasn't
including it. This didn't cause an error since places that included
backend.h had also included bt-daemon.h but new code may not be so
lucky.
test: Add get_layer_path test