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

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

Change-Id: I77fbe6d2e90f9510f35f5a1ccbee9ed7b0e495a3