implement support for functions which may optionally fail to load am: aa295c8355 am: 61eedf0524

Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/1336225

Change-Id: I983ab36df02a43fa02d95078230050137b834b90