Revert "uwsgi.is_locked raises an exception"

This reverts commit 5a3b93f763c7a0ea90ba11d53b7d642c07e41efd.