Fixed server hang issue (lock not always released)

When I initially installed Brat with Apache and flup, it would simply hang when I tried to load a page. This change fixed it.