Added index update serializeation via lockfile.  Addresses multiple bug report.

https://github.com/geminabox/geminabox/issues/115
https://github.com/geminabox/geminabox/issues/81