On locally conformally cosymplectic Hamiltonian dynamics and Hamilton–Jacobi theory