Improve chunkloading performance, prevent provideChunk from returning a newly generated chunk before populating it.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>