How to avoid missing status for Workflow access module permission just after node creation?
Just had the same problem for me, but for a custom hook_node_access_records().

For me the solution to implement the hook_node_grants(). and clear the cache.

Once you use the hook_node_access_records, you have to implement the hook_node_grants.