The tricky part of locks is that you should unlock them when you are done with them. Add unlock before various returns.
The tricky part of locks is that you should unlock them when you are done with them. Add unlock before various returns.

chmorgan/libesphttpd