Replace process endpoint mutex with R/W locks
Add R/W locks to endpoints