APC: Disable MMAP when a stream is to be captured

As MMAP does not support APC, it is disabled when a render loopback
policy is installed.

Test: adb shell write_sine_callback -pl # mmap is used
      adb shell audiorecorder  --target /data/file1.raw &
      adb shell write_sine_callback -pl # mmap is NOT used
Bug: 129948989
Change-Id: Ia90c24953890de7e19fd99485bf760788f81126d
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit c1dde631401a9cda122cf3058a99e36274906801)
3 files changed