thread safety between the mongoose server thread and the asynchronous getter