PCMCIA: resource, fix lock imbalance