ncm-spma: check the locked packages with wildcards

Better:

```perl
if (!@$wanted_locked) {
...
```