simpleperf: fix recording Java code with -p option.

When recording with both --app and -p option, simpleperf doesn't
start JITDebugReader, thus can't profile JITed and interpreted Java
code. This patch fixes it.

Also change test.py to test it.

Bug: none
Test: run simpleperf_unit_test.
Test: run test.py.
Change-Id: Ib03fe689ad7c4ebbd69fd3c66a21f496dfdcf97f
2 files changed