[PATCH 6.0 237/862] bpf: Fix reference state management for synchronous callbacks