syzcmd: add the get_unloaded function to support "syz ensure" and the soon-to-be-added "syz isloaded".
syzcmd: Add "syz isloaded" and adjust "syz ensure" innards (no user-facing changes).