Fix ib_strstr to actually work correctly when the haystack is smaller
than the needle
Use pointers to ib_lock_t instances to avoid copying. It is invalid to copy an pthread_mutex_t (which is what an ib_lock_t is).
Fixing potential negative array index cases. Fixing missing NULL check after ib_mm_alloc() call.
capture.c: ib_capture_fullname() returns more descriptive values on incorrect input.
lock.c: Free lock when it is manually destroyed or when a create fails.
test_util_lock.cpp: Remove a double-free for a test mutex.
Merge branch 'master' of https://github.com/crustymonkey/ironbee
tests: Add a unit test for ib_strstr() where needle is bigger than haystack.