Core show locks gives:
No such command ‘core show locks’ (type ‘core show help core show locks’ for other possible commands)
That’s not compiled into our build of Asterisk, as that’s more for debugging.
You’ll need to compile Asterisk yourself. Sorry!