fixed bug in os_getChunkSize

(forgot to leave critical section