Add max_seq/0 function to the API.

The test suite doesn't have to use MAX_SEQ macro, which had to keep the same
value as eid_server module.