drivers: mm: lib: Optimizations and make use of rcu_read_lock/unlock instead of read_lock/unlock

Signed-off-by: garwedgess <garethwilliams21@gmail.com>