Impolement most part of 'Step One'.

1. not using pthread condition variable, just make the lock client loop,
   so the rpc requests must be very high

2. add a counter to gather how many times the acquire rpc is called,
   get the final result from stat call (slightly different from the
   original stat semantic)

3. remove some trailing spaces