hook_node_grants() implemented by a custom module is not invoked
It didn't have anything to do with my code. I'm new to Drupal so I didn't know hook_node_grants() don't get invoked when I'm signed in as an administrator. Newbie mistake from my side :)