[keyserver][lib] Move sessionStateValidator to lib
Summary:
I need to move this to lib since I'm about to introduce a new endpoint that takes SessionState as input.
Depends on D12361
Test Plan: This is a pure move diff. Careful code inspection and Flow
Reviewers: tomek
Reviewed By: tomek
Differential Revision: https://phab.comm.dev/D12362