We had a similar issue with 'synch/mutex/aria/PAGECACHE::cache_lock' on MariaDB RDS.
We were fetching and sorting 200k+ rows, and changing the following parameters helped us: tmp_table_size max_heap_table_size
Also there were queries in 'Converting HEAP to Aria' status in the processlist table