EnableDebugger: handle the case when hard RLIMIT_CORE is <inf.

ASan and HWASan set rlim_cur = rlim_max = 0 for RLIMIT_CORE.

Bug: 112438058
Test: SANITIZE_TARGET=hwaddress, no RLIMIT_CORE warnings in logcat

Change-Id: I8839705673c371b9b393eca36c7519a1ea73d7be
1 file changed