bug-22209: Fix invalid read/write reported by Valgrind in jal_subscribe