Replace the custom reader/writer lock with the standard implementation available in C++17. Change-Id: I46013b821f13a023a16094830b7f45c4bacf11cb