Fix(OOM): Avoid too many splits
Fix(OOM): Avoid too many splits

In edge cases, we end up with too many splits during compactions, which
make compactions take up too much RAM. Avoid that by limiting splits to
max 5. Also, avoid running more compactions when the memory usage is
going above 16GB.

dgraph-io/badger,dgraph-io/badger