expose num_locks and {get,set}_{id,locking}_callback