Search Lucene: use session_write_close to make the index call non-blocking