lxc-test-locktests: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/lxc-test-locktests - from package: lxc

You may install the required package with command apt-get install {package}
Error in other languages:
lxc-test-locktests: bevel nie gevind nie
lxc-test-locktests: comandă negăsită
lxc-test-locktests: comando não encontrado
lxc-test-locktests: commande introuvable
lxc-test-locktests: command not found
lxc-test-locktests: käsku ei ole
lxc-test-locktests: không tìm thấy lệnh
lxc-test-locktests: komanda nerasta
lxc-test-locktests: Kommando nicht gefunden.
lxc-test-locktests: kommandot finns inte
lxc-test-locktests: komut yok
lxc-test-locktests: nie znaleziono polecenia
lxc-test-locktests: níor aimsíodh an t-ordú
lxc-test-locktests: no se encontró la orden
lxc-test-locktests: no s'ha trobat l'ordre
lxc-test-locktests: opdracht niet gevonden
lxc-test-locktests: parancs nem található
lxc-test-locktests: perintah tidak ditemukan
lxc-test-locktests: príkaz nenájdený
lxc-test-locktests: příkaz nenalezen
lxc-test-locktests: команда не найдена
lxc-test-locktests: командата не е открита
lxc-test-locktests: 命令找不到
lxc-test-locktests: コマンドが見つかりません