ZWave almost works, but... ("can't lock controller")

I’m a new user who is just starting to set up HA. I bought a RPi and an Aotec Z-Stick Gen5, downloaded Hasbian and set it up. I added the zwave section to my conf

zwave:
  usb_path: /dev/zstick
  config_path: /srv/homeassistant/lib/python3.4/site-packages/python_openzwave/ozw_config
  network_key: YEAHRIGHT
  autoheal: True

and the ZWave section appears. But, when I try to pair a ZWave device (with add_node_secure or just add_node), it doesn’t work. In the logs, I see an error:

Jun 26 01:37:20 hassbian hass[793]: #033[33m2017-06-26 01:37:20 WARNING (Thread-10) [openzwave] Can't lock controller for command : add_node#033[0m

I checked that homeassistant is in group “dialout” and that dialout has rw perms:

$ ls -lL /dev/zstick
crw-rw---- 1 root dialout 166, 0 Jun 26 01:35 /dev/zstick

I also checked that no other process is doing anything with the ZWave controller:

$ sudo lsof /dev/zstick
COMMAND PID          USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
hass    793 homeassistant   17uW  CHR  166,0      0t0 6520 /dev/ttyACM0

Any ideas as to why it says it can’t lock the controller?

Skimming the code (and I’ve been an HA user for less than a day :’), it looks like it’s actually trying to take a PThread lock that is in-use. So maybe the first time I tried to pair with a device, it blocked and is just sitting there. (I even tried rebooting.) But in any case, I can’t get it to pair with any ZWave devices.

Thanks so much for your help–this looks like a great community.

Oh, and while I didn’t bother including version info since I was current as-of today, I realized future readers of this forum may care, so:

HA 0.47.1
openzwave-0.4.0.35
python_openzwave-0.4.0.35-py3.4-linux-armv7l

RPi 3 b w/16G card
Aotec ZW090 Z-Stick Gen 5

Sorry I can’t help with errors but there’s another to pair devices with the Aeotec ZW090 Z-Stick using the button. Here’s a great example from BRUH Automation. (It will start at the part you need) Maybe you can pair devices this way instead.

https://youtu.be/ajklDCaOGwY?t=7m1s

Thanks Troy. I’ll give it a try. I assume I can’t pair with secure devices that way however.