Minor updates.
Updated lock() functions in servlets.