Renamed and moved src/editor/editloc.[ch] -> lib/lock.[ch]. Renamed lock handling functions. Fixed library order in src/Makefile.am. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>