Lock fixes

Initial locks not always being lifted, so removed. delete_all was not
successfully deleting plan_sections, so now looping over and deleting
one by one.
Merge branch 'master' of https://github.com/DigitalCurationCentre/DMPonline_v4

Conflicts:
	app/controllers/projects_controller.rb