Fixes a race condition where freeing a buffer and immediately re-allocating and adding it would fail to pass the file descriptor to udebugd Signed-off-by: Felix Fietkau <nbd@nbd.name>
Copied and adapted from udebug.git Signed-off-by: Felix Fietkau <nbd@nbd.name>