bpf: pin the map only if we're not yet attached
If we get here attached is already true.
@bentiss: there's a bug here but I don't know which one it is. Either we don't need to try to map.pin()
because attached
is already true (fixed in this patch), or the line attached = true
after map.pin()
is superfluous.