fix more missing includes

The one in tests/java_frame.at breaks unit tests on S390x in a very
non-obvious way.

Signed-off-by: Martin Milata <mmilata@redhat.com>
fix use-after-free in sr_java_frame_free_full

Signed-off-by: Martin Milata <mmilata@redhat.com>