Fix and relax locking
Only connected devices are available devices
Merge pull request #930 from AudriusButkevicius/avail

Only connected devices are available devices
Test case to pinpoint DB corruption (failing)
Update goleveldb
Translation update