catch up to lab1.final

1. change the mutex container from array to map in lock_server.cc
2. add LOSSY support