getopt() and lock improvements

1. Moved getopt() method outside object constructor to allow usage of exceptions in it, for example to terminate when required parameters not provided
2. Removed TTL capabilities from lock plugins
3. Fixed Core_Lib_Memcache according to http://ru2.php.net/manual/en/book.memcached.php
4. Some lock plugin code improvements