Call JMX operations

I'm using Neo4j 4.3.1 Enterprise Edition and Neo4j Browser 1.4.8.
I'm currently monitoring a Neo4j database and it would be usefull to extract the number of database locks.
Is there a way to retrieve an JMX MBean operation result through a database call just like when requesting for an attribute as represented bellow?

CALL dbms.queryJmx("java.lang:type=Threading") 
YIELD attributes 
RETURN attributes.CurrentThreadUserTime


call dbms.listActiveLocks();

I'm sorry, i meant number of deadlocks*.