rima.lua: store source of lock