Database and filesystem locks for Django