Pylint/pep8 fixes
Add locked attribute to assets.
Merge pull request #1045 from edx/assets/persist_lock

save lock state in contentstore