The spec should not allow hidden documents to request pointer lock. Additionally, should a document become hidden, it should release the pointer lock.