use a pthread_rwlock_t for open chunked file bookkeeping
FIX: last second fix of extremely nasty offset-bug... w. t. f.