Break the infinit loop when taking the lock and that the compiledir is full.
pep8
Merge pull request #1548 from nouiz/compiledir

Fix infinite loop when we can't create the lock_dir directory.