ensureIndex must not been called asynchronous

Signed-off-by: Alexander Knapstein <alexander.knapstein@inspirationlabs.com>