Optimize locker:master_dirty_read/1

Read from the local node if it is a locker master, otherwise read
from a random remote master.